import request from '@/utils/request'

// 查询轮播图列表
export function listRotationImage(query) {
    return request({
        url: '/system/rotationImage/list',
        method: 'get',
        params: query
    })
}

// 查询轮播图详细
export function getRotationImage(id) {
    return request({
        url: '/system/rotationImage/' + id,
        method: 'get'
    })
}

// 新增轮播图
export function addRotationImage(data) {
    return request({
        url: '/system/rotationImage',
        method: 'post',
        data: data
    })
}

// 修改轮播图
export function updateRotationImage(data) {
    return request({
        url: '/system/rotationImage',
        method: 'put',
        data: data
    })
}

// 删除轮播图
export function delRotationImage(id) {
    return request({
        url: '/system/rotationImage/' + id,
        method: 'delete'
    })
}

// 导出轮播图
export function exportRotationImage(query) {
    return request({
        url: '/system/rotationImage/export',
        method: 'get',
        params: query
    })
}